
module Waveform_Generator
#(
    parameter DEPTH=16,
    parameter WIDTH=8
)
(
    input wire [1:0] i_mode, //0:DDS Mode 1:Repetitive patterns 2:Single Mode 3:Reserved
    input wire i_clk,
    input wire i_rst,
    input wire [31:0] i_fctrl,
    input wire [31:0] i_pctrl,
    input wire [7:0] i_cdiv,
    input wire i_trig,
    input wire signed [31:0] i_dcbias,
    input wire signed [31:0] i_gain,

    output reg [DEPTH-1:0] o_RAM_Addr,
    input wire [WIDTH-1:0] i_RAM_OUT,
    output wire signed [WIDTH-1:0] o_WaveOut
);